package eoeProject.edenOfEast.bean;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import eoeProject.edenOfEast.dataBase.DB_EOE_ANALYSES_CATEGORY;

public class EOEAnalysesCategoryBean implements DBBean {

	private Integer category_id;
	private String name;
	private Date create_date;
	private Date update_date;

	private List<String> columnList = new ArrayList<String>();
	private List<String> valueList = new ArrayList<String>();

	public EOEAnalysesCategoryBean() {
		columnList.add(DB_EOE_ANALYSES_CATEGORY.CATEGORY_ID);
		columnList.add(DB_EOE_ANALYSES_CATEGORY.NAME);
		columnList.add(DB_EOE_ANALYSES_CATEGORY.CREATE_DATE);
		columnList.add(DB_EOE_ANALYSES_CATEGORY.UPDATE_DATE);
	}

	public List<String> getColumnList() {
		return columnList;
	}

	public void setValueList() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		valueList.add(category_id.toString());
		valueList.add(name);
		valueList.add(sdf.format(create_date));
		valueList.add(sdf.format(update_date));
	}

	public List<String> getValueList() {
		return valueList;
	}

	public Integer getCategoryId() {
		return category_id;
	}

	public void setCategoryId(Integer category_id) {
		this.category_id = category_id;
	}

	public String getName() {
		return name;
	}

	public void setTitle(String name) {
		this.name = name;
	}

	public Date getCreateDate() {
		return create_date;
	}

	public void setCreateDate(Date create_date) {
		this.create_date = create_date;
	}

	public Date getUpdateDate() {
		return update_date;
	}

	public void setUpdateDate(Date update_date) {
		this.update_date = update_date;
	}

}
